@import "./assets/css/theme.scss";
@import "~taro-ui/dist/style/index.scss";
@import "./assets/font-awesome/font-awesome.scss";
@import "./assets/font/iconfont.scss";

.page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
}

view {
  box-sizing: border-box;
}

// 实例模板
.example {
  padding: 10px 20px;
  margin-bottom: 10px;

  &:not(:first-child) {
    border-top: 40px solid #f5f5f5;
  }

  &__header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;

    &-title {
      color: #999;
      font-size: 28px;
    }

    &-note {
      font-size: 24px;
      margin-left: 20px;
      color: #ccc;
    }
  }
}

/**
 * Example 样式
 */
.panel__content {
  .example-item {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }

    .subitem {
      display: inline-block;
      margin-left: 32px;
      vertical-align: middle;

      &:first-child {
        margin-left: 0;
      }
    }

    &__desc {
      margin-bottom: 12px;
      color: #333;
      font-size: 24px;
    }

    .demo-btn {
      position: relative;
      display: inline-block;
      padding: 12px 24px;
      color: $color-brand-light;
      font-size: 28px;
      text-align: center;
      border-radius: 8px;
      border: 1PX solid $color-brand-light;
      overflow: hidden;

      &:active {
        opacity: 0.6;
      }
    }
  }
}

.doc-body {
  // min-height: calc(100vh - 180px);
  // background: #fff;
  // box-shadow: 0 26px 163px 0 rgba(0, 0, 0, 0.11);
  padding-bottom: 60px;
  padding-bottom: calc(constant(safe-area-inset-bottom) + 60px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 60px);

  .panel {
    margin: 80px 0 56px;

    &:first-child {
      margin-top: 40px;
    }

    &__title {
      position: relative;
      margin-bottom: 40px;
      padding-left: 60px;
      color: #7F7F7F;
      font-size: 32px;
      font-weight: bold;
      line-height: 1.5;

      // &::before {
      //   content: '';
      //   display: block;
      //   position: absolute;
      //   top: 50%;
      //   left: 0;
      //   width: 30px;
      //   height: 4px;
      //   border-top-right-radius: 2px;
      //   border-bottom-right-radius: 2px;
      //   background: $color-brand-light;
      //   box-shadow: 1px 1px 2px 0 rgba($color: $color-brand-light, $alpha: 0.5);
      //   transform: translate3d(0, -50%, 0);
      // }
    }

    &__content {
      padding: 0 60px;

      &.no-padding {
        padding: 0;

        .example-item__desc {
          padding: 0 60px;
        }
      }
    }
  }
}
